﻿using System;
using System.Collections.Generic;
using System.Threading;

namespace SharpSqlAnalyzer.pp.para
{
	// Token: 0x0200025C RID: 604
	public class GFmtOptFactory
	{
		// Token: 0x06001355 RID: 4949 RVA: 0x0031E9B0 File Offset: 0x0031CBB0
		public static GFmtOpt newInstance(string sessionId)
		{
			if (!GFmtOptFactory.objs.ContainsKey(sessionId))
			{
				Type typeFromHandle = typeof(GFmtOptFactory);
				lock (typeFromHandle)
				{
					if (!GFmtOptFactory.objs.ContainsKey(sessionId))
					{
						GFmtOptFactory.objs[sessionId] = new GFmtOpt(sessionId);
					}
				}
			}
			return GFmtOptFactory.objs[sessionId];
		}

		// Token: 0x06001356 RID: 4950 RVA: 0x0031EA2C File Offset: 0x0031CC2C
		public static GFmtOpt newInstance()
		{
			return GFmtOptFactory.newInstance(Convert.ToInt64(Thread.CurrentThread.ManagedThreadId).ToString());
		}

		// Token: 0x04001440 RID: 5184
		private static volatile IDictionary<string, GFmtOpt> objs = new Dictionary<string, GFmtOpt>();
	}
}
